
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        
        <title>FibJS - JavaScript on Fiber</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <link href="css/flexslider.min.css" rel="stylesheet" type="text/css" media="all"/>
        <link href="css/line-icons.min.css" rel="stylesheet" type="text/css" media="all"/>
        <link href="css/elegant-icons.min.css" rel="stylesheet" type="text/css" media="all"/>
        <link href="css/lightbox.min.css" rel="stylesheet" type="text/css" media="all"/>
        <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" media="all"/>
        <link href="css/theme-aquatica.css" rel="stylesheet" type="text/css" media="all"/>
        <link href="css/custom.css" rel="stylesheet" type="text/css" media="all"/>
        <link rel="icon" type="image/png" href="img/icon.png">
        <!--[if gte IE 9]>

        <!--[if gte IE 9]>
        	<link rel="stylesheet" type="text/css" href="css/ie9.css" />
		<![endif]-->
        <script src="js/modernizr-2.6.2-respond-1.1.0.min.js"></script>
    </head>
    <body>
    	<div class="loader">
    		<div class="spinner">
			  <div class="double-bounce1"></div>
			  <div class="double-bounce2"></div>
			</div>
    	</div>
				
		<div class="nav-container">
			<nav class="top-bar">
				<div class="container">
				
					<div class="row nav-menu">
						<div class="col-sm-3 col-md-2 columns">
							<a href="index.html">
								<img class="logo logo-light" alt="Logo" src="img/logo-light.png">
								<img class="logo logo-dark" alt="Logo" src="img/logo-dark.png">
							</a>
						</div>
					
						<div class="col-sm-9 col-md-10 columns  text-right">
							<ul class="menu">
								<li><a href="index.html">Home</a>
								</li>
								<li><a href="guide.html">Guide</a>
								</li>
								<li><a  href="moudle.html">Moudle</a>
								</li>
								<li><a href="object.html">Object</a>
								</li>
								<li><a href="download.html">Download</a>
								</li>
							</ul>
						</div>
					</div><!--end of row-->
					
					<div class="mobile-toggle">
						<i class="icon icon_menu"></i>
					</div>
					
				</div><!--end of container-->
			</nav>
		</div>
		<section class="main-container primary-features">
			<div class="container search">
                <div class="row">
                    <div class="col-sm-12 col-md-9 columns">
                       <h1>Guide 开发指南</h1>
                    </div>
                    <div class="col-sm-12 col-md-3 columns text-right">
                        <input type="text" class="form-control search" placeholder="Search for...">
                    </div>
                </div>
            </div>
        </section>
        <section class="main-container">
			<div class="container">
                <div class="row">
                    <div class="col-xs-12">
                        <a href=#>首页</a> / <a href=#>开发指南</a> / <a href=#>开发指南</a>
                    </div>
                </div>
            </div>
        </section>

        <section class="main-container">
            <div class="container">
                <div class="row">
                    <div class="col-md-3">
                        <div class="panel-group" id="accordion" role="tablist">  <div class="panel"><div class="panel-heading" role="tab" id="headingOne"><h4 class="panel-title"><a data-toggle="collapse" data-parent="#accordion" href="#collapse_guide" aria-controls="collapse_guide"> 开发指南 </a></h4></div><div id="collapse_guide" class="panel-collapse collapse in" aria-labelledby="headingOne"><div class="panel-body"> <ul>
                                <li><a href="about.md.html">fibjs 是什么？</a></li>
                                <li><a href="install.md.html">安装运行环境</a></li>
                                <li><a href="hello.md.html">hello, world</a></li>
                                <li><a href="test.md.html">美好生活从测试开始</a></li>
                                </ul>
                                 </div></div></div>  <div class="panel"><div class="panel-heading" role="tab" id="headingOne"><h4 class="panel-title"><a data-toggle="collapse" data-parent="#accordion" href="#collapse_module" aria-controls="collapse_module"> 基础模块 </a></h4></div><div id="collapse_module" class="panel-collapse collapse " aria-labelledby="headingOne"><div class="panel-body"> <ul>
                                <li><a href="../manual/module/ifs/assert.md.html">assert</a></li>
                                <li><a href="../manual/module/ifs/base32.md.html">base32</a></li>
                                <li><a href="../manual/module/ifs/base64.md.html">base64</a></li>
                                <li><a href="../manual/module/ifs/base64vlq.md.html">base64vlq</a></li>
                                <li><a href="../manual/module/ifs/bson.md.html">bson</a></li>
                                <li><a href="../manual/module/ifs/collection.md.html">collection</a></li>
                                <li><a href="../manual/module/ifs/console.md.html">console</a></li>
                                <li><a href="../manual/module/ifs/coroutine.md.html">coroutine</a></li>
                                <li><a href="../manual/module/ifs/crypto.md.html">crypto</a></li>
                                <li><a href="../manual/module/ifs/db.md.html">db</a></li>
                                <li><a href="../manual/module/ifs/encoding.md.html">encoding</a></li>
                                <li><a href="../manual/module/ifs/fs.md.html">fs</a></li>
                                <li><a href="../manual/module/ifs/gd.md.html">gd</a></li>
                                <li><a href="../manual/module/ifs/global.md.html">global</a></li>
                                <li><a href="../manual/module/ifs/gui.md.html">gui</a></li>
                                <li><a href="../manual/module/ifs/hash.md.html">hash</a></li>
                                <li><a href="../manual/module/ifs/hex.md.html">hex</a></li>
                                <li><a href="../manual/module/ifs/http.md.html">http</a></li>
                                <li><a href="../manual/module/ifs/iconv.md.html">iconv</a></li>
                                <li><a href="../manual/module/ifs/io.md.html">io</a></li>
                                <li><a href="../manual/module/ifs/json.md.html">json</a></li>
                                <li><a href="../manual/module/ifs/mq.md.html">mq</a></li>
                                <li><a href="../manual/module/ifs/net.md.html">net</a></li>
                                <li><a href="../manual/module/ifs/os.md.html">os</a></li>
                                <li><a href="../manual/module/ifs/path.md.html">path</a></li>
                                <li><a href="../manual/module/ifs/path_posix.md.html">path_posix</a></li>
                                <li><a href="../manual/module/ifs/path_win32.md.html">path_win32</a></li>
                                <li><a href="../manual/module/ifs/process.md.html">process</a></li>
                                <li><a href="../manual/module/ifs/profiler.md.html">profiler</a></li>
                                <li><a href="../manual/module/ifs/punycode.md.html">punycode</a></li>
                                <li><a href="../manual/module/ifs/querystring.md.html">querystring</a></li>
                                <li><a href="../manual/module/ifs/registry.md.html">registry</a></li>
                                <li><a href="../manual/module/ifs/ssl.md.html">ssl</a></li>
                                <li><a href="../manual/module/ifs/test.md.html">test</a></li>
                                <li><a href="../manual/module/ifs/timers.md.html">timers</a></li>
                                <li><a href="../manual/module/ifs/tty.md.html">tty</a></li>
                                <li><a href="../manual/module/ifs/url.md.html">url</a></li>
                                <li><a href="../manual/module/ifs/util.md.html">util</a></li>
                                <li><a href="../manual/module/ifs/uuid.md.html">uuid</a></li>
                                <li><a href="../manual/module/ifs/vm.md.html">vm</a></li>
                                <li><a href="../manual/module/ifs/ws.md.html">ws</a></li>
                                <li><a href="../manual/module/ifs/xml.md.html">xml</a></li>
                                <li><a href="../manual/module/ifs/zip.md.html">zip</a></li>
                                <li><a href="../manual/module/ifs/zlib.md.html">zlib</a></li>
                                <li><a href="../manual/module/ifs/zmq.md.html">zmq</a></li>
                                </ul>
                                 </div></div></div>  <div class="panel"><div class="panel-heading" role="tab" id="headingOne"><h4 class="panel-title"><a data-toggle="collapse" data-parent="#accordion" href="#collapse_object" aria-controls="collapse_object"> 内置对象 </a></h4></div><div id="collapse_object" class="panel-collapse collapse " aria-labelledby="headingOne"><div class="panel-body"> <ul>
                                <li><a href="../manual/object/ifs/asyncwait.md.html">AsyncWait</a></li>
                                <li><a href="../manual/object/ifs/blockqueue.md.html">BlockQueue</a></li>
                                <li><a href="../manual/object/ifs/buffer.md.html">Buffer</a></li>
                                <li><a href="../manual/object/ifs/bufferedstream.md.html">BufferedStream</a></li>
                                <li><a href="../manual/object/ifs/chain.md.html">Chain</a></li>
                                <li><a href="../manual/object/ifs/cipher.md.html">Cipher</a></li>
                                <li><a href="../manual/object/ifs/condition.md.html">Condition</a></li>
                                <li><a href="../manual/object/ifs/dbconnection.md.html">DbConnection</a></li>
                                <li><a href="../manual/object/ifs/digest.md.html">Digest</a></li>
                                <li><a href="../manual/object/ifs/event.md.html">Event</a></li>
                                <li><a href="../manual/object/ifs/eventemitter.md.html">EventEmitter</a></li>
                                <li><a href="../manual/object/ifs/eventinfo.md.html">EventInfo</a></li>
                                <li><a href="../manual/object/ifs/fiber.md.html">Fiber</a></li>
                                <li><a href="../manual/object/ifs/file.md.html">File</a></li>
                                <li><a href="../manual/object/ifs/gridfs.md.html">GridFS</a></li>
                                <li><a href="../manual/object/ifs/handler.md.html">Handler</a></li>
                                <li><a href="../manual/object/ifs/handlerex.md.html">HandlerEx</a></li>
                                <li><a href="../manual/object/ifs/heapgraphedge.md.html">HeapGraphEdge</a></li>
                                <li><a href="../manual/object/ifs/heapgraphnode.md.html">HeapGraphNode</a></li>
                                <li><a href="../manual/object/ifs/heapsnapshot.md.html">HeapSnapshot</a></li>
                                <li><a href="../manual/object/ifs/httpclient.md.html">HttpClient</a></li>
                                <li><a href="../manual/object/ifs/httpcollection.md.html">HttpCollection</a></li>
                                <li><a href="../manual/object/ifs/httpcookie.md.html">HttpCookie</a></li>
                                <li><a href="../manual/object/ifs/httphandler.md.html">HttpHandler</a></li>
                                <li><a href="../manual/object/ifs/httpmessage.md.html">HttpMessage</a></li>
                                <li><a href="../manual/object/ifs/httprequest.md.html">HttpRequest</a></li>
                                <li><a href="../manual/object/ifs/httpresponse.md.html">HttpResponse</a></li>
                                <li><a href="../manual/object/ifs/httpserver.md.html">HttpServer</a></li>
                                <li><a href="../manual/object/ifs/httpsserver.md.html">HttpsServer</a></li>
                                <li><a href="../manual/object/ifs/httpuploaddata.md.html">HttpUploadData</a></li>
                                <li><a href="../manual/object/ifs/image.md.html">Image</a></li>
                                <li><a href="../manual/object/ifs/int64.md.html">Int64</a></li>
                                <li><a href="../manual/object/ifs/leveldb.md.html">LevelDB</a></li>
                                <li><a href="../manual/object/ifs/list.md.html">List</a></li>
                                <li><a href="../manual/object/ifs/lock.md.html">Lock</a></li>
                                <li><a href="../manual/object/ifs/lrucache.md.html">LruCache</a></li>
                                <li><a href="../manual/object/ifs/map.md.html">Map</a></li>
                                <li><a href="../manual/object/ifs/memorystream.md.html">MemoryStream</a></li>
                                <li><a href="../manual/object/ifs/message.md.html">Message</a></li>
                                <li><a href="../manual/object/ifs/mongocollection.md.html">MongoCollection</a></li>
                                <li><a href="../manual/object/ifs/mongocursor.md.html">MongoCursor</a></li>
                                <li><a href="../manual/object/ifs/mongodb.md.html">MongoDB</a></li>
                                <li><a href="../manual/object/ifs/mongoid.md.html">MongoID</a></li>
                                <li><a href="../manual/object/ifs/mssql.md.html">MSSQL</a></li>
                                <li><a href="../manual/object/ifs/mysql.md.html">MySQL</a></li>
                                <li><a href="../manual/object/ifs/object.md.html">object</a></li>
                                <li><a href="../manual/object/ifs/pkey.md.html">PKey</a></li>
                                <li><a href="../manual/object/ifs/queue.md.html">Queue</a></li>
                                <li><a href="../manual/object/ifs/redis.md.html">Redis</a></li>
                                <li><a href="../manual/object/ifs/redishash.md.html">RedisHash</a></li>
                                <li><a href="../manual/object/ifs/redislist.md.html">RedisList</a></li>
                                <li><a href="../manual/object/ifs/redisset.md.html">RedisSet</a></li>
                                <li><a href="../manual/object/ifs/redissortedset.md.html">RedisSortedSet</a></li>
                                <li><a href="../manual/object/ifs/routing.md.html">Routing</a></li>
                                <li><a href="../manual/object/ifs/sandbox.md.html">SandBox</a></li>
                                <li><a href="../manual/object/ifs/seekablestream.md.html">SeekableStream</a></li>
                                <li><a href="../manual/object/ifs/semaphore.md.html">Semaphore</a></li>
                                <li><a href="../manual/object/ifs/service.md.html">Service</a></li>
                                <li><a href="../manual/object/ifs/smtp.md.html">Smtp</a></li>
                                <li><a href="../manual/object/ifs/socket.md.html">Socket</a></li>
                                <li><a href="../manual/object/ifs/sqlite.md.html">SQLite</a></li>
                                <li><a href="../manual/object/ifs/sslhandler.md.html">SslHandler</a></li>
                                <li><a href="../manual/object/ifs/sslserver.md.html">SslServer</a></li>
                                <li><a href="../manual/object/ifs/sslsocket.md.html">SslSocket</a></li>
                                <li><a href="../manual/object/ifs/stat.md.html">Stat</a></li>
                                <li><a href="../manual/object/ifs/stats.md.html">Stats</a></li>
                                <li><a href="../manual/object/ifs/stream.md.html">Stream</a></li>
                                <li><a href="../manual/object/ifs/subprocess.md.html">SubProcess</a></li>
                                <li><a href="../manual/object/ifs/tcpserver.md.html">TcpServer</a></li>
                                <li><a href="../manual/object/ifs/textcolor.md.html">TextColor</a></li>
                                <li><a href="../manual/object/ifs/timer.md.html">Timer</a></li>
                                <li><a href="../manual/object/ifs/urlobject.md.html">UrlObject</a></li>
                                <li><a href="../manual/object/ifs/websocket.md.html">WebSocket</a></li>
                                <li><a href="../manual/object/ifs/websockethandler.md.html">WebSocketHandler</a></li>
                                <li><a href="../manual/object/ifs/websocketmessage.md.html">WebSocketMessage</a></li>
                                <li><a href="../manual/object/ifs/webview.md.html">WebView</a></li>
                                <li><a href="../manual/object/ifs/worker.md.html">Worker</a></li>
                                <li><a href="../manual/object/ifs/x509cert.md.html">X509Cert</a></li>
                                <li><a href="../manual/object/ifs/x509crl.md.html">X509Crl</a></li>
                                <li><a href="../manual/object/ifs/x509req.md.html">X509Req</a></li>
                                <li><a href="../manual/object/ifs/xmlattr.md.html">XmlAttr</a></li>
                                <li><a href="../manual/object/ifs/xmlcdatasection.md.html">XmlCDATASection</a></li>
                                <li><a href="../manual/object/ifs/xmlcharacterdata.md.html">XmlCharacterData</a></li>
                                <li><a href="../manual/object/ifs/xmlcomment.md.html">XmlComment</a></li>
                                <li><a href="../manual/object/ifs/xmldocument.md.html">XmlDocument</a></li>
                                <li><a href="../manual/object/ifs/xmldocumenttype.md.html">XmlDocumentType</a></li>
                                <li><a href="../manual/object/ifs/xmlelement.md.html">XmlElement</a></li>
                                <li><a href="../manual/object/ifs/xmlnamednodemap.md.html">XmlNamedNodeMap</a></li>
                                <li><a href="../manual/object/ifs/xmlnode.md.html">XmlNode</a></li>
                                <li><a href="../manual/object/ifs/xmlnodelist.md.html">XmlNodeList</a></li>
                                <li><a href="../manual/object/ifs/xmlprocessinginstruction.md.html">XmlProcessingInstruction</a></li>
                                <li><a href="../manual/object/ifs/xmltext.md.html">XmlText</a></li>
                                <li><a href="../manual/object/ifs/zipfile.md.html">ZipFile</a></li>
                                <li><a href="../manual/object/ifs/zipinfo.md.html">ZipInfo</a></li>
                                <li><a href="../manual/object/ifs/zmqsocket.md.html">ZmqSocket</a></li>
                                </ul>
                                 </div></div></div>  </div>
                    </div>
                    <!--end of left menu-->
                    <div class="col-md-7 main-content">
                        <div class="row">
                           <div class="col-md-10 col-ms-12">
                                <h1 id="开发指南">开发指南</h1>
                            </div>
                            <div class="col-md-2 col-ms-12">
                                <div class="social-share share-component" data-sites="weibo,twitter" data-description="分享">
                                    <a class="social-share-icon icon-weibo" href="http://service.weibo.com/share/share.php?url=http%3A%2F%2Ffibjs.org%2Fdocs%2Fguide%2Fabout.md.html&amp;title=fibjs%20%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F%20-%20JavaScript%20on%20Fiber&amp;pic=http%3A%2F%2Ffibjs.org%2Fimgs%2Flogo.png&amp;appkey=" target="_blank"></a>
                                    <a class="social-share-icon icon-twitter" href="https://twitter.com/intent/tweet?text=fibjs%20%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F%20-%20JavaScript%20on%20Fiber&amp;url=http%3A%2F%2Ffibjs.org%2Fdocs%2Fguide%2Fabout.md.html&amp;via=http%3A%2F%2Ffibjs.org" target="_blank"></a>
                                </div>
                            </div>
                        </div>
                        <ul>
                        <li><a href="about.md.html">fibjs 是什么？</a></li>
                        <li><a href="install.md.html">安装运行环境</a></li>
                        <li><a href="hello.md.html">hello, world</a></li>
                        <li><a href="test.md.html">美好生活从测试开始</a></li>
                        </ul>
                    </div>
                    <!--end of content-->
                    
                    <div class="col-md-2">
                        <div id="toc" class="tocify" style="top: 0px;">
                        <ul id="tocify-header0" class="tocify-header nav nav-list">
                            <li class="tocify-item active" data-unique="fibjs-是什么？" style="cursor: pointer;"><a>fibjs 是什么？</a></li>
                        </ul>
                        </div>
                    </div>
                    <!--end of right menu-->
                    
                </div>
            </div>
        </section>


		<div class="footer-container">
		
			<div class="footer-container">
			<footer class="short bg-secondary-1">
				<div class="container">
                    <div class="row">
						<div class="col-sm-10 copyright">
							<span>© Copright 2017 FibJS.org | <a href=support.html>支持我们</a></span>
							<!--ul>
								<li><a href="#">Terms Of Use</a></li>
								<li><a href="#">Privacy &amp; Security Statement</a></li>
								<li><a href="#">Sitemap</a></li>
							</ul-->
						</div>
						
						<div class="col-sm-2 text-right">
							<ul class="social-icons">
								<li>
									<a href="#">
										<i class="icon social_twitter"></i>
									</a>
								</li>
								
								<li>
									<a href="#">
										<i class="icon social_facebook"></i>
									</a>
								</li>
							</ul>	
						</div>
					</div><!--end of row-->
				</div><!--end of container-->
			</footer>
		</div>
				
		<script src="js/jquery.min.js"></script>
        <script src="js/jquery.plugin.min.js"></script>
        <script src="js/bootstrap.min.js"></script>
        <script src="js/jquery.flexslider-min.js"></script>
        <script src="js/smooth-scroll.min.js"></script>
        <script src="js/skrollr.min.js"></script>
        <script src="js/spectragram.min.js"></script>
        <script src="js/scrollReveal.min.js"></script>
        <script src="js/isotope.min.js"></script>
        <script src="js/twitterFetcher_v10_min.js"></script>
        <script src="js/lightbox.min.js"></script>
        <script src="js/jquery.countdown.min.js"></script>
        <script src="js/scripts.js"></script>
        
        
        <script type=text/javascript src=http://fibjs.org/js/common.js></script>
        <script type=text/javascript src=http://fibjs.org/js/index.js></script>
    </body>
</html>
				